<template>
	<view class="content">
		首页
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello'
			}
		},
		onLoad(){
			this.$u.get('/user/login', {
				username: 'lisa',
				password: '123456'
			}).then(res => {
				// res为服务端返回的数据
			}).catch(err =>{
				console.log(err, 'error+++');
			}
			
			)
			
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	

</style>
